package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.Date;

@Entity
@Table(name = "applet_qr_code")   // 定义数据库表名
public class QrCode implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;//主键

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "scene_name")
    private String sceneName; //场景名称

    @Column(name = "associated_keyword")
    private String associatedKeyword;//关联关键字

    @Column(name = "qr_code_type")
    private String qrCodeType;//类型

    @Column(name = "scene_value")
    private String sceneValue;//场景值

    @Column(name = "effective_time")
    private int effectiveTime;//过期时间

    @Column(name = "qr_code_state")
    private String qrCodeState; //二维码状态（00-新增、10-启用、20-停用、30-过期、40-作废）
    @Column(name = "scanning_volume")
    private int scanningVolume; //扫描量
    @Column(name = "create_time")
    private Date createTime; //生成时间

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    public String getAssociatedKeyword() {
        return associatedKeyword;
    }

    public void setAssociatedKeyword(String associatedKeyword) {
        this.associatedKeyword = associatedKeyword;
    }

    public String getQrCodeType() {
        return qrCodeType;
    }

    public void setQrCodeType(String qrCodeType) {
        this.qrCodeType = qrCodeType;
    }

    public String getSceneValue() {
        return sceneValue;
    }

    public void setSceneValue(String sceneValue) {
        this.sceneValue = sceneValue;
    }

    public int getEffectiveTime() {
        return effectiveTime;
    }

    public void setEffectiveTime(int effectiveTime) {
        this.effectiveTime = effectiveTime;
    }



    public String getQrCodeState() {
        return qrCodeState;
    }

    public void setQrCodeState(String qrCodeState) {
        this.qrCodeState = qrCodeState;
    }

    public int getScanningVolume() {
        return scanningVolume;
    }

    public void setScanningVolume(int scanningVolume) {
        this.scanningVolume = scanningVolume;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
